package com.kingzoder.food.model.dto.recipe;

import com.kingzoder.food.model.dto.ingredient.EditIngredientDTO;
import com.kingzoder.food.model.dto.ingredient.EditRecipeStepDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author ZoderKing
 */
@Schema(name = "编辑菜谱实体类")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class EditRecipeDTO {
    @Schema(name = "id")
    private Long id;
    @Schema(name = "食谱标题")
    private String title;
    @Schema(name = "食谱描述")
    private String description;
    @Schema(name = "食谱图片URL")
    private String imageUrl;
    @Schema(name = "烹饪时间（分钟）")
    private Integer cookTime;
    @Schema(name = "难度等级")
    private String difficulty;
    @Schema(name = "评分")
    private String rating;
    @Schema(name = "用餐人数")
    private String servings;
    @Schema(name = "食谱食材")
    private List<EditIngredientDTO> ingredients;
    @Schema(name = "制作步骤")
    private List<EditRecipeStepDTO> steps;
}
